<script lang="tsx">
import MiniVue from "./index.mini.vue";
import H5Vue from "./index.h5.vue";

const ModuleVue = process.env.TARO_ENV === "h5" ? H5Vue : MiniVue;

export default {
  setup(props, ctx) {
    return () => (
      <ModuleVue {...ctx.attrs}>
        {{
          default: ctx.slots.default,
          loading: ctx.slots.loading,
          finished: ctx.slots.finished,
        }}
      </ModuleVue>
    );
  },
};
</script>

<style lang="scss"></style>
